package com.demo.studentmanager.dto;

import com.demo.studentmanager.entity.LeaveAudit;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author lzx
 */
@Data
@Accessors(chain = true)
public class LeaveAddDto extends BaseDto<LeaveAudit> {

    @ApiModelProperty(required = true)
    @NotNull
    public String id;

    @ApiModelProperty(value = "学生号",required = true)
    @NotNull
    public String sno;

    @ApiModelProperty(value = "天数",required = true)
    @NotNull
    public Integer days;

    @ApiModelProperty(value = "理由",required = true)
    @NotNull
    public String reason;


}
